home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Plotting / aa_Intel_Only / Gnuplot / GnuplotSource / Gnuplot.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  2.2 KB  |  101 lines

  1. /*
  2.  *  Copyright (C) 1993  Robert Davis
  3.  *
  4.  *  This program is free software; you can redistribute it and/or
  5.  *  modify it under the terms of Version 2, or any later version, of 
  6.  *  the GNU General Public License as published by the Free Software 
  7.  *  Foundation.
  8.  */
  9.  
  10. /* $Id: Gnuplot.h,v 1.7 1993/05/18 03:55:07 davis Exp $ */
  11.  
  12. #import <objc/Object.h>
  13.  
  14. @class GnuplotPlot, Inspector, List, Preferences;
  15.  
  16. #define    SAVE_GNUPLOT    0        /* SavePanel options    */
  17. #define    SAVE_EPS    1
  18. #define    SAVE_TIFF    2
  19.  
  20. #define DOCUMENT_TYPE    "gnuplot"
  21.  
  22. @interface Gnuplot:Object
  23. {
  24.     NXZone *zone;
  25.  
  26.     id        infoPanel;
  27.     id        nextstepVersionTextField;    /* auto-updated by RCS    */
  28.     id        versionTextField;
  29.     id        copyingPanel;
  30.     Inspector    *inspector;
  31.     Preferences    *preferences;
  32.     id        savePanelAccessory;
  33.     id        savePanelTypeMatrix;
  34.     id        stringSet;
  35.  
  36.     List    *docList;    /* List of documents currently open    */
  37.     GnuplotPlot    *currentDoc;    /* Doc with most recent main window    */
  38.     int        numUntitled;    /* # of Untitled docs created since launch */
  39.  
  40.     BOOL    isPoweringOff;    /* Is user powering off or logging out?    */
  41. }
  42.  
  43.  
  44. /** Class methods for handling app-wide preferences **/
  45.  
  46. + setConstantUpdate:(int)updateType;
  47. + setHalvePlot:(BOOL)condition;
  48.  
  49. - init;
  50. - stringSet;                /* Returns the app's string set    */
  51.  
  52.  
  53. /** Target/Action **/
  54.  
  55. - showInfoPanel:sender;
  56. - showCopyingPanel:sender;
  57. - showPreferencesPanel:sender;
  58. - showInspectorPane:sender;
  59. - new:sender;
  60. - open:sender;
  61. - saveAll:sender;
  62. - setSaveType:sender;
  63. - (int)saveType;
  64.  
  65. - updateApp;            /* Updates panels that reflect current doc */
  66.  
  67.  
  68. /** Interacting With Documents **/
  69.  
  70. - docDidClose:sender;
  71. - isDocOpen: (const char *) fullPath;
  72. - (int)numberNew;            /* Returns numUntitled        */
  73. - setCurrentDoc:(GnuplotPlot *)aDoc;
  74. - (GnuplotPlot *)currentDoc;
  75.  
  76.  
  77.  
  78. /** Menu Auto-Update Methods **/
  79.  
  80. - (BOOL)menuItemUpdate:menuCell;
  81. - (BOOL)validateCommand:menuCell;
  82.  
  83.  
  84.  
  85. /** Application delegate **/
  86.  
  87. - (int)app:sender openFile:(const char *)path type:(const char *)type;
  88. - (BOOL)appAcceptsAnotherFile:sender;
  89.  
  90.  
  91.  
  92. /** 
  93.  ** Services.  These messages are sent when a user chooses one of our 
  94.  ** items from the services menu.
  95.  **/
  96.  
  97. - plotData:pb userData:(const char *)userData error:(char **)errorMessage;
  98.  
  99.  
  100.  @end
  101.